@extends('admin.layout.layout ')
@section('title','分类管理')
@section('con')
<div id="page-wrapper">
<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">分类修改</h1>
    </div>
    <!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<div class="row">
    <div class="col-lg-8 col-lg-offset-2">
    	@if (count($errors) > 0)
    	    <div class="alert alert-danger">
    	        <ul>
    	            @foreach ($errors->all() as $error)
    	                <li>{{ $error }}</li>
    	            @endforeach
    	        </ul>
    	    </div>
    	@endif
        <div class="panel panel-default">
            
            <div class="panel-body">
                <div class="row">
                	
                    <div class="col-lg-10">
                        <form role="form" action="{{url('/admin/cate/update')}}" method="post" enctype="multipart/form-data">
                        
                            <div class="form-group">
                                <label>分类名</label>
                                <input name="tname" value="{{$cates->tname}}" class="form-control">
                            </div>

                            <input type="hidden" name="tid" value="{{$cates->tid}}">
                          	{{csrf_field()}}
                            <button class="btn btn-primary btn-lg" type="submit">修改</button>
                            <button class="btn btn-warning btn-lg" type="reset">重置</button>
                        </form>
                    </div>
                    
                </div>
                <!-- /.row (nested) -->
            </div>
            <!-- /.panel-body -->
        </div>
        <!-- /.panel -->
    </div>
    <!-- /.col-lg-12 -->
</div>      
</div>
@endsection